/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "设备检查记录", description = "设备检查记录实体类")
public class DeviceCheck extends BaseEntity {

    public DeviceCheck() {
        super();
    }

    public DeviceCheck(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "水司名称", name = "corpName", required = true)
    private String corpName;

    @ApiModelProperty(value = "标题", name = "title", required = true)
    private String title;

    @ApiModelProperty(value = "检查负责人code", name = "checkEmployeeCode" )
    private String checkEmployeeCode;

    @ApiModelProperty(value = "检查负责人姓名", name = "checkEmployeeName" )
    private String checkEmployeeName;

    @ApiModelProperty(value = "检查执行人code", name = "executerCode" )
    private String executerCode;

    @ApiModelProperty(value = "检查执行人姓名", name = "executerName" )
    private String executerName;

    @ApiModelProperty(value = "状态：1草稿2提交3审批通过", name = "status" )
    private Integer status;

    @ApiModelProperty(value = "检查时间", name = "checkTime" )
    private Date checkTime;

    @ApiModelProperty(value = "描述", name = "description" )
    private String description;

    private String jobsTasksId;

    // 检查时间字符串，用于导出
    private String checkTimeStr;

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getCheckEmployeeCode() {
        return checkEmployeeCode;
    }

    public void setCheckEmployeeCode(String checkEmployeeCode) {
        this.checkEmployeeCode = checkEmployeeCode;
    }

    public String getCheckEmployeeName() {
        return checkEmployeeName;
    }

    public void setCheckEmployeeName(String checkEmployeeName) {
        this.checkEmployeeName = checkEmployeeName;
    }

    public String getExecuterCode() {
        return executerCode;
    }

    public void setExecuterCode(String executerCode) {
        this.executerCode = executerCode;
    }

    public String getExecuterName() {
        return executerName;
    }

    public void setExecuterName(String executerName) {
        this.executerName = executerName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getJobsTasksId() {
        return jobsTasksId;
    }

    public void setJobsTasksId(String jobsTasksId) {
        this.jobsTasksId = jobsTasksId;
    }

    public String getCheckTimeStr() {
        return checkTimeStr;
    }

    public void setCheckTimeStr(String checkTimeStr) {
        this.checkTimeStr = checkTimeStr;
    }

    @Override
    public String toString() {
        return "DeviceCheck{" +
                "corpCode='" + corpCode + '\'' +
                ", title='" + title + '\'' +
                ", checkEmployeeCode='" + checkEmployeeCode + '\'' +
                ", checkEmployeeName='" + checkEmployeeName + '\'' +
                ", executerCode='" + executerCode + '\'' +
                ", executerName='" + executerName + '\'' +
                ", status=" + status +
                ", checkTime=" + checkTime +
                ", description='" + description + '\'' +
                '}';
    }

}
